<div class="m-container" ng-controller="teamController" ng-if="identity==1">
    <div class="m-team" ng-show="path1=='team' && !path2 && !joinTeam">
        <nav-tab></nav-tab>
        <div class="swiper-container" id="teamSwiper">
            <div class="swiper-wrapper" >
                <!-- 我创建的团队 -->
                <div class="swiper-slide" >
                    <div class="m-teamD" ng-show="teamC.groupId>0"  scroll-down2>
                        <div class="baseInfo">
                            <h2>{{teamC.name}}</h2>
                            <p class="digest">团队简介:{{teamC.describe}}</p>
                            <p class="dfr jssb aic member" ui-sref="team.members"><span>团队成员</span><span>{{teamC.memberCount>0?teamC.memberCount:'暂无成员'}}</span></p>
                            <div class="members dfr aic ">
                                <li class="imgLi" ng-repeat="item in teamC.groupMembersInfo" ng-click="teamC.memberCount>0"><img ng-src="{{item.avatar}}"></li>
                                <button class="add" ng-click="invite()"></button>
                            </div>
                        </div>
                        <div class="detail">
                            <li class="teamItem sales"><span>本月销售额(元)</span><span>{{teamC.salesAmount?teamC.salesAmount:0}}</span></li>
                            <li class="teamItem forward"><span>转发内容</span><span>{{teamC.relayCount}}</span></li>
                            <li class="teamItem champion"><span>销售冠军</span><span>{{teamC.salesFirst}}</span></li>
                            <li class="teamItem forward_ch"><span>转发冠军</span><span>{{teamC.relayFirst}}</span></li>
                            <li class="teamItem commission"><span>赚取佣金</span><span>{{teamC.incomeCount}}</span></li>
                            <li class="teamItem custom"><span>总客户数</span><span>{{teamC.totalCustomerCount}}</span></li>
                            <li class="teamItem reserve"><span>预约产品</span><span>{{teamC.bespeakProductCount}}</span></li>
                            <li class="teamItem sell"><span>销售单数</span><span>{{teamC.salesOrderCount}}</span></li>
                        </div>
                    </div>
                    <div class="m-teamD create" ng-hide="teamC.groupId ||isFetching">
                        <div class="Bg"></div>
                        <p class="f16 c5d6 ls1">您还没创建团队</p>
                        <a ui-sref="team.create" class="btnN">立即创建</a>
                    </div>
                </div>
                <!-- 我加入的团队 -->
                <div class="swiper-slide">
                    <div class="m-teamD" ng-show="teamJ"  scroll-down2>
                        <div class="baseInfo">
                            <h2>{{teamJ.name}}</h2>
                            <p class="digest">团队简介:{{teamJ.describe}}</p>
                        </div>
                        <div class="detail">
                                <li class="teamItem sales"><span>本月销售额(元)</span><span>{{teamJ.salesAmount?teamJ.salesAmount:0}}</span></li>
                                <li class="teamItem forward"><span>转发内容</span><span>{{teamJ.relayCount}}</span></li>
                                <li class="teamItem champion"><span>销售冠军</span><span>{{teamJ.salesFirst}}</span></li>
                                <li class="teamItem forward_ch"><span>转发冠军</span><span>{{teamJ.relayFirst}}</span></li>
                                <li class="teamItem commission"><span>赚取佣金</span><span>{{teamJ.incomeCount}}</span></li>
                                <li class="teamItem custom"><span>总客户数</span><span>{{teamJ.totalCustomerCount}}</span></li>
                                <li class="teamItem reserve"><span>预约产品</span><span>{{teamJ.bespeakProductCount}}</span></li>
                                <li class="teamItem sell"><span>销售单数</span><span>{{teamJ.salesOrderCount}}</span></li>
                            </div>
                    </div>
                    <div class="m-teamD join" ng-hide="teamJ || isFetching">
                        <div class="Bg"></div>
                        <p class="f16 c5d6 ls1">您还没有加入任何团队</p>
                    </div>

                </div>
            </div>
        </div>
    </div>
    <div ng-show="isFetching" class="nodata">
            <i class="icon-spinner icon-spin icon-large"></i>
    </div>
    <div ng-include="'components/user/team/members.html'" ng-show="path1 == 'team' && path2 == 'members'"></div>
    <div ng-include="'components/user/team/createTeam.html'" ng-show="path1 == 'team' && path2 == 'create'"></div>
</div>